package com.example.video.service;

import com.example.video.entity.Account;

import java.util.List;
import com.example.video.common.Result;
import com.example.video.entity.OuterAccount;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author qiusuyang
 * @since 2024-04-13
 */
public interface IAccountService {

    List<Account> getList(Integer page, Integer size);

    List<Account> search(Integer page, Integer size, String name, Integer platformId);

    List<Account> searchByName(String name);

    Account getItem(Integer id);
    public int save(Account account);
    boolean delete(Integer id);


    void updateByUrl(Account account);

    long getCountByName(String name);

    long getCount();

    void updateById(Account account);

    List<Account> searchByNameAndplatformId(String name, Integer platformId);

    Result<List<OuterAccount>> bind(String deviceId);


    Account selectOne(String deviceId);

    Account getItemByUrl(String url);

    List<Account> getListByAccountIdArr(List<Integer> idList);

    Account getItemByDeviceId(String deviceId);
}
